package com.fwj.user.api.rbac;

import com.alibaba.fastjson.JSONObject;
import com.fwj.user.entity.rbac.auth.Auth;

/**
 * @Author: fwj
 * @Data: 2022/5/1 17:32
 * @Version 1.0
 * @Description:
 */


public interface RBACAuthService {
    /**
     * @Description TODO 保存权限
     * @Param: Auth
     * @Author fwj
     * @Createtime 2022/5/1
     */
    JSONObject saveAuth(Auth auth);

    /**
     * @Description TODO 删除权限
     * @Param: String
     * @Author fwj
     * @Createtime 2022/5/1
     */
    JSONObject deleteAuth(String authNumber);

    /**
     * @Description TODO 查询权限
     * @Param: jsonObject
     * @Author fwj
     * @Createtime 2022/5/1
     */
    JSONObject queryAuth(JSONObject jsonObject);

    /**
     * @Description TODO 获取权限详情
     * @Param: String
     * @Author fwj
     * @Createtime 2022/5/1
     */
    JSONObject getAuthDetails(String authNumber);

    /**
     * @Description TODO 获取权限详情
     * @Param: String
     * @Author fwj
     * @Createtime 2022/5/1
     */
    Auth findAuthByAuthNumber(String authNumber);
}
